﻿<phone:PhoneApplicationPage 
    x:Class="SF.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False" Opacity="0.5" BorderBrush="#4C000000">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" >
        <Grid.Background>
            <VideoBrush x:Name="_previewVideo">
                <VideoBrush.RelativeTransform>
                    <CompositeTransform x:Name="_previewTransform" CenterX=".5" CenterY=".5" Rotation="90" />
                </VideoBrush.RelativeTransform>
            </VideoBrush>
        </Grid.Background>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Height="160"  Name="stackPanel1" VerticalAlignment="Top" Width="480" Background="#63000000" AllowDrop="False">
            <TextBlock Text="扫描结果：" FontSize="28" Margin="30,30,0,0"></TextBlock>
            <TextBlock Name="tbResult" Text="" FontSize="28" Foreground="#FFDE1414" FontWeight="Bold" TextAlignment="Center" TextWrapping="Wrap"></TextBlock>
        </StackPanel>
        <StackPanel Grid.Row="1" Height="200"  Margin="0,440,0,0" Name="stackPanel2" VerticalAlignment="Top" Width="480" Background="#74000000">
            <TextBlock Height="196" Name="tbWebResult" Text="" TextWrapping="Wrap" Foreground="#FFFF0A0A" />
        </StackPanel>
    </Grid>
 
    
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Opacity="0.7">
            <shell:ApplicationBarIconButton IconUri="/appbar.feature.camera.rest.png" Text="扫描" Click="ApplicationBarIconButton_Click" />
            <shell:ApplicationBarIconButton IconUri="/appbar.feature.search.rest.png" Text="查询" Click="ApplicationBarIconButton_Click_1" />
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem  Text="历史记录" />
                <shell:ApplicationBarMenuItem  Text="关于" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
        
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>